<!DOCTYPE html>

<html lang="Zh-CN">

<head>
<meta charset="utf-8">
<title>登陆界面</title>
<link rel="stylesheet" href="css/login.css">
</head>
<body>
	<div id="d1">
		<h1 style="color: white">用户登录</h1>
		<br><br><br>
		<div id="form-d1">
		  <form>
				<p>你好,</p>
				<label for="email">服务协议：</label>
				<textarea placeholder="服务以及免责协议的内容,请勿在此填写账号密码等信息。" ></textarea>
				<p>Please,</p>
				<label for="name" >账号:</label>
                <i aria-hidden="true"></i>
				<input type="text" placeholder="请输入账号" id="name"  required autofocus />
				<label for="password" >密码:</label>
                <i aria-hidden="true"></i>
				<input type="text" placeholder="请输入密码" id="pass" required />
                <button type="button" onclick="login()">Login</button>
			</form>
		</div>
	</div>

  </body>
    <script>
    function login(){
        var username =document.getElementById("name").value;
        var password =document.getElementById("pass").value;
        if(username=="123456" && password=="123456"){
            alert("密码正确");
            window.location.href = "MY blog内容.html";
            return false;
        }
        else{
            alert("账号或密码错误");
            window.location.href= "login.html";
            return false;
        }
    }
</script>
</html>